

package com.hazelcast.map;

import java.io.Serial;

/**
 * Allows implementations to implement {@link MapInterceptor} with less boilerplate code
 */
public class MapInterceptorAdaptor implements MapInterceptor {
    @Serial
    private static final long serialVersionUID = 1L;

    @Override
    public Object interceptGet(Object value) {
        return value;
    }

    @Override
    public void afterGet(Object value) {
    }

    @Override
    public Object interceptPut(Object oldValue, Object newValue) {
        return newValue;
    }

    @Override
    public void afterPut(Object value) {
    }

    @Override
    public Object interceptRemove(Object removedValue) {
        return removedValue;
    }

    @Override
    public void afterRemove(Object value) {
    }
}
